import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export const constantRouterMap = [
    {
        path: '',
        component: resolve => require(['~/views/layout'], resolve),
        hidden: true,
        children: [{
            path: 'dashboard',
            component: resolve => require(['~/views/dashboard/index.vue'], resolve),
            hidden: true,
        }, {
            path: 'add',
            component: resolve => require(['~/views/dashboard/add.vue'], resolve),
            hidden: true,
        },]
    },
    {
        path: 'ddddd',
        component: resolve => require(['~/views/dashboard/add.vue'], resolve),
        hidden: true,
    },
];

export default new Router({
    scrollBehavior: () => ({y: 0}),
    routes: constantRouterMap
})